package com.ttl.bc.report.receive.material;



import java.util.ArrayList;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;


import org.apache.struts.action.ActionForm;

import com.ttl.view.ITTL_OutStock;




public class ReportReceiveMaterialBO {
 
	public void getReportReceiveAll(ActionForm form,HttpServletRequest request, HttpServletResponse response,String reportName) {
		
	}

	public ArrayList<ITTL_OutStock> getReceiveByDepartment(ActionForm form, HttpServletRequest request, HttpServletResponse response, String string) {

		ReportReceiveMaterialForm rptForm = (ReportReceiveMaterialForm)form;
		String monthId = rptForm.getMonthId();
		String yearId = rptForm.getYearId();
		String[] selectedItems = rptForm.getSelectedItems();
		String department = selectedItems[0];
		return new ReportReceiveMaterialDAO().getReceiveByDepartment(yearId, monthId, department);
	}

}
